<div class="items view">
    <h2 class="left"><?php __('Item'); ?></h2>
    <div class="actions specific">
        <ul>
<!--            <li><?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $item['Item']['id'])); ?> </li>-->
            <li><?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $item['Item']['id']), null, sprintf(__('Esta seguro que desea eliminar # %s?', true), $item['Item']['id'])); ?> </li>
        </ul>
    </div>
    <br />
    <br />
    <br />
    <dl><?php $i = 0;
$class = ' class="altrow"'; ?>
        <dt<?php if ($i % 2 == 0)
            echo $class; ?>><?php __('Id'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $item['Item']['id']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Cantidad Vendida'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $item['Item']['sale_amount']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Precio Unitario'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $item['Item']['temp_price']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Artículo'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $this->Html->link($item['Article']['mark'] . '-' . $item['Article']['model'], array('controller' => 'articles', 'action' => 'view', $item['Article']['id'])); ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Venta'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php
                $fecha = date('d/m/Y', strtotime($item['Sale']['sale_date']));
                echo $this->Html->link($fecha, array('controller' => 'sales', 'action' => 'view', $item['Sale']['id']));
                ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Retoque'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $item['Item']['retouch']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Cambio Fase/Confección'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $item['Item']['phase_change']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Subtotal'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $item['Item']['subtotal']; ?>
            &nbsp;
        </dd>
    </dl>
</div>
